#pragma once

#include <ECS/ECS.h>

class GameObject;

/// Trigger component
/// Triggers observes tiles on the map and emits signals when some object
/// enters observed area or leaves it
class Trigger : public ECS::Component
{
	mtMETA_DEC
public:
	Signal<void (GameObject*)> eventTargetEntered;
	Signal<void (GameObject*)> eventTargetLeaved;
};